libxl: disks: new xlu_disk_parse function
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 28 Jun 2011 11:19:11 +0000 (12:19 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Tue, 28 Jun 2011 11:19:11 +0000 (12:19 +0100)
commit5c206536adf068f418d19195841ee18eb4537b6e
tree4c36fe860600999e481333826196143cd9e0cdd8
parenteaed6ac8500f4a501ed02cebb4f99b3c8cf94adb
libxl: disks: new xlu_disk_parse function

Introduce new flex/regexp-based parser for disk configuration strings.
Callers will be updated in following patches.

The existing xm command line syntax for block-attach expects multiple
arguments containing different parameters for different parts of the
disk specification, so we supply a parser function which can take
multiple strings and scan them in sequence.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
tools/libxl/Makefile
tools/libxl/libxlu_disk.c [new file with mode: 0644]
tools/libxl/libxlu_disk_i.h [new file with mode: 0644]
tools/libxl/libxlu_disk_l.l [new file with mode: 0644]
tools/libxl/libxlutil.h